home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
MACPROTO
/
MACPROTO._TC
Wrap
Text File
|
1990-04-16
|
6KB
|
170 lines
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! C A U T I O N !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THIS UPDATE IS NOT FROM SYMANTEC AND IN NO WAY REFLECTS SYMANTEC APPROVAL.
THE UPDATE IS PROVIDED AS A SERVICE TO OTHER USERS OF THINK C WHO USE THE MAC TOOLBOX
PROTOTYPES FILE (MACPROTO.H). THESE CHANGES ARE NOT GUARANTEED AND SHOULD BE USED AT YOUR
OWN RISK. WE ARE NOT RESPONSIBLE FOR ANY ERRORS OR OMISSIONS.
MACPROTO TCL UPDATE INSTRUCTIONS
================================
Copyright ⌐ 1990 Johnston/Johnston. All rights reserved.
4/13/90
INTRODUCTION
============
Since Symantec released the THINK Class Library, we've found, and users have
reported, several incompatibilities with the Mac Toolbox Prototypes. This update
fixes these bugs
This update uses a program called AutoWeave to create new TCL source files
from the updated v4.0.2 THINK C Class Library files. It applies a set of
"differences" files to the patched THINK Class Library source files that
you have updated to version 4.0.2 to create new updated source files.
There are two things to watch out for:
Ñ The AutoWeave program assumes that you have not changed
how the THINK Class Library source files are organized.
All of the TCL source files should be a folder called
THINK Class Library which should contain two folders called
Core Classes and More Classes.
Ñ If you modified any of the original source files, you
should move them to a different folder or rename them.
Otherwise, the AutoWeave program will replace them with
updated versions, and your changes will be lost.
***IMPORTANT***
Ñ This update is different from the updates provided from Symantec
for updating to version 4.0.2. This update MUST be applied to the
updated v4.0.2 files and NOT to the original v4.0 files.
HOW TO USE IT
=============
ÑÑ Please read through these instructions before you begin.
0. Be sure that you have already updated your THINK C 4.0 package
with the version 4.0.2 changes provided from Symantec.
1. Make a copy of the v4.0.2 updated THINK Class Library in addition
to the copy that you originally updated. You will use one copy to
compare the changes and the other to merge the updates into. You
should keep a clean copy of the Symantec v4.0.2 THINK Class Library
as backup.
2. Double-click on the file named "MacProto Update.Script" to launch
the AutoWeave program.
3. The AutoWeave program will ask you to locate the updated "THINK
Class Library" folder. Insert your updated THINK Class Library disk
in the floppy drive, choose the folder "THINK Class Library" and
click OK.
4. The AutoWeave program will ask you to locate your copy of the
"THINK Class Library" folder. If you followed the installation
instructions in your THINK C 4.0 User's Manual, this folder
is your THINK C Folder.
5. The AutoWeave program will ask you to locate the "MacProto Update
Diffs" folder. This folder is supplied as part of this update.
Select this folder and click OK.
6. The AutoWeave program will now modify the appropriate files,
keeping you informed of its progress. When it has finished,
you may want to check one or two of the files, to make sure
that everything worked. (For example, if you chose the
wrong Diffs folder in step 4, the Weaver wouldn't actually
do anything, although it might act like it did.)
NOTE: All changes are marked with the comment, /* PK 4/12/90 */, in the
source files. If you wish to find the changes discussed above you can
search for the comment string.
SUMMARY OF THE CHANGES
======================
CORE SOURCES
1. CApplication.c
Various toolbox calls involving Handles were coerced to use type "Handle".
2. CBartender.c
Various toolbox calls involving Handles were coerced to use type "Handle".
3. CCluster.c
Various toolbox calls involving Handles were coerced to use type "Handle".
4. CControl.c
A call to TrackControl needed the Procedure Pointer parameter coerced
to type "ProcPtr".
5. CDecorator.c
Several toolbox calls involving windows were coerced to use type "WindowPtr".
6. CDesktop.c
Several toolbox calls involving windows were coerced to use type "WindowPtr".
7. CDocument.c
Various toolbox calls involving Handles were coerced to use type "Handle".
8. CError.c
Various toolbox calls involving Handles were coerced to use type "Handle".
9. CList.c
A toolbox call (SetHandleSize) involving Handles was coerced to use type
"Handle".
10. CPicture.c
A toolbox call (HNoPurge) involving Handles was coerced to use type
"Handle".
11. CPrinter.c
A toolbox call (DisposHandle) involving Handles was coerced to use type
"Handle".
12. CScrollBar.c
The toolbox call SetCRefCon needed to have "this" coerced to type "long".
13. CWindow.c
The toolbox call SetWRefCon needed to have "this" coerced to type "long".
14. TBUtilities.c
Several toolbox calls involving windows were coerced to use type "WindowPeek".
CORE SOURCES
1. CCharGrid.c
A toolbox call (HUnlock) involving Handles was coerced to use type "Handle".
2. CColorWindow.c
A call to GetNewCWindow needed the Procedure Pointer parameter coerced
to type "CWindowPtr".
3. CPatternGrid.c
The toolbox call to HUnlock and DisposHandle needed their parameters coerced
to type "Handle". A call to the toolbox call FillRect was modified to pass
the array instead of the address to the array to conform to the toolbox prototype.
4. CStack.c
The toolbox call to SetHandleSize needed to have the item handle coerced to
type "Handle".
HOW TO CONTACT US
=================
These changes are provided for free and are warranted as such (e.g. you don't pay
for anything and we don't guarantee anything). We use these changes on a day to day
basis in our own projects and hope that they work for you. If for some reason you
wish to contact us you can send email to:
Andrew Johnston 71101,556 or 71101.556@compuserve.com
or AJohnston@applelink.apple.com
Phil Keller 71311,136 or 71311.136@compuserve.com